projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f5537c
)
xi2: Remove touchscreen heuristics
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 7 Apr 2012 00:00:35 +0000
(20:00 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 7 Apr 2012 00:00:35 +0000
(20:00 -0400)
It doesn't make sense to consider a device a touchscreen if it
doesn't have any touch classes. Even if it has 'touch' in its
name.
https://bugzilla.gnome.org/show_bug.cgi?id=673440
gdk/x11/gdkdevicemanager-xi2.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkdevicemanager-xi2.c
b/gdk/x11/gdkdevicemanager-xi2.c
index 0ae7117dfe5d6816545bddb55df74fddf77518a2..c15e82d8e263b6403dd0392e4da5ecb17f76c84f 100644
(file)
--- a/
gdk/x11/gdkdevicemanager-xi2.c
+++ b/
gdk/x11/gdkdevicemanager-xi2.c
@@
-331,10
+331,6
@@
create_device (GdkDeviceManager *device_manager,
input_source = GDK_SOURCE_ERASER;
else if (strstr (tmp_name, "cursor"))
input_source = GDK_SOURCE_CURSOR;
- else if (strstr (tmp_name, "finger") ||
- (strstr (tmp_name, "touch") &&
- !strstr (tmp_name, "touchpad")))
- input_source = GDK_SOURCE_TOUCHSCREEN;
else if (strstr (tmp_name, "wacom") ||
strstr (tmp_name, "pen"))
input_source = GDK_SOURCE_PEN;